using System.Collections.Generic;
using System.IO;
using UnityEngine;
using Newtonsoft.Json;
public class AppController : MonoBehaviour
{
    private DataFetchController m_dataFetchController;
    public DataFetchController DataFetchController => m_dataFetchController;
    private StockDataAnalysis m_stockDataAnalysis;
    public StockDataAnalysis StockDataAnalysis => m_stockDataAnalysis;
    private StocksPicker m_stocksPicker;
    public StocksPicker StocksPicker => m_stocksPicker;

    private YijianfenghouAnalysis _yijianfenghouAnalysis;
    public YijianfenghouAnalysis YijianfenghouAnalysis => _yijianfenghouAnalysis;
    private ShoubanAnalysis _ShoubanAnalysisAnalysis;
    public ShoubanAnalysis ShoubanAnalysisAnalysis => _ShoubanAnalysisAnalysis;
    private ErlianbanAnalysis _ErlianbanAnalysis;
    public ErlianbanAnalysis ErlianbanAnalysis => _ErlianbanAnalysis;
    private LizhuangliangAnalysis _LizhuangliangAnalysis;
    public LizhuangliangAnalysis LizhuangliangAnalysis => _LizhuangliangAnalysis;
    private YizizhuiyaoAnalysis _YizizhuiyaoAnalysis;
    public YizizhuiyaoAnalysis YizizhuiyaoAnalysis => _YizizhuiyaoAnalysis;
    
    private static AppController _instance;
    public static AppController instance
    {
        get
        {
            if (_instance == null)
                _instance = FindObjectOfType<AppController>();
            return _instance;
        }
    }

    void Awake()
    {
        _instance = this;

        m_dataFetchController = GetComponentInChildren<DataFetchController>();
        m_stockDataAnalysis = GetComponentInChildren<StockDataAnalysis>();
        m_stocksPicker = GetComponentInChildren<StocksPicker>();
        _yijianfenghouAnalysis = GetComponentInChildren<YijianfenghouAnalysis>();
        _ShoubanAnalysisAnalysis = GetComponentInChildren<ShoubanAnalysis>();
        _ErlianbanAnalysis = GetComponentInChildren<ErlianbanAnalysis>();
        _LizhuangliangAnalysis = GetComponentInChildren<LizhuangliangAnalysis>();
        _YizizhuiyaoAnalysis = GetComponentInChildren<YizizhuiyaoAnalysis>();
    }
    void Start()
    {
        
    }

}